package com.charon.auth.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;


/**
  *@ClassName: DemoAuthController
  *@Description: 认证授权示例
  *@Author: Charon [248135724@qq.com]
  *@Date: 2019/1/12 0012 12:28
  *@Version: 1.0
  */

//关闭自动加载Security配置
//@EnableAutoConfiguration(exclude = SecurityAutoConfiguration.class)
//关闭自动加载数据库链接
//@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class)

//配置多模块包扫描，大括号中可以写多个字符串（包名），之所以分开写是模块化更清晰，方便阅读源码的程序猿理解。
//（加载认证安全配置）
@ComponentScan(basePackages = {"com.charon.auth"})
//（加载公用脚手架，如切片日志等）
@ComponentScan(basePackages = {"com.charon.common"})
//@RibbonClient(name = "charon-auth-demo", configuration = RibbonConfiguration.class)
@EnableDiscoveryClient
@SpringBootApplication
public class DemoAuthApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoAuthApplication.class,args);
    }

}
